fixes to syntax
removed commented out lines
response checking