rearranging struct members