added code to do update on Objective. needs testing