remove redundant submit switch