Rearranging entities