consistency checks
fix to consistency checks