fixing status code and formatting