progress with push() inside a foreach()