relocate sanity check to fix movement