finished tweaking submit script