update for the before_capture