implemented helpers function in redis