fixed class definition