removed some trailing whitespace that caused "cannot modifiy headers" error