before final submit