calling parseResponse