updating objective