finish main part