made program infinite loop on sample collection