changing redis to global var