replaced email object by a key-value object in response