clean up the object class