improving submission script