removed test for while