realized a 山寨pivot-table