added consistency for problem 2