changes to plotResPhase