refactored pause