quick update on pop function