Added negative phase check
commit just to get things in repo.  will refactor changes