cleaning up the response functions

cleaning up the response functions