reformat data structure in redis. test ok