changing initPhaseName to use switch statement