removed conditional logic in redis