sanity check fixed