push events in a loop