before testing the whole loop