divide and round up swap instead of physical to fix off by 1 errors