fixed var names in submit script