add error handling. change no error response[2] to bool from nil