fixing response code