changed remove to pop