error in response checking now corrected