update for pop()