before removing port1 optgroups