taking samples from the main stream