checking sanity