fix spaces and response.