fixing redis query and responc