change variable name from response to res (keyword conflict)