loop end when count = 4