initial commit for update method