refactored worker to include user model