updating file before final submission