main object class fix