sanity checking