rearranging pmem values