fixed definition of class