fixed error on problem 2c