sanity checks added