adding pushpop helper