removed while loop in q3p