made public the getResponse method