refactor and LedisToRedis