adjust the orderings in palette