added code for make_submission seventh version.