strengthened a sanity check