update a main