created script to format submission