make response a global variable