changed sanity check bounds