add doc on submit