better consistency check