rearranging maps with list