finding out how to send a proper response