changed submit script