fixed error in two files