revised update function.
Merge branch 'update_report' into develop