adding phases