rework push action for memory reallocation

just fixed the FIXME section.