bring PHASE_DELAY_AT_90 constant above algorithim that uses it