changed type of sanity check