error in class