changed the name block to phase, which makes the functionality clearer