changed 'hash' to 'key' for response