put in sanity check