changed echos back to trigger_error