modify the submit script