Forgot to declare the param response at the top of the function