changed pop()