maybe the check should rather be `offset % PAGE_SIZE != 0`?