make a base submit functions and fix an old instance submission line