put optional fields to last