refactored goToWork