check consistency