add phase and save phase