add update method to header