finish main object