adding c shell scripts to reset the phases