finished loops for all students