updated before_action