sanity check improved(2)