beginning of postSubmit