sanity checking class