do some rearranging