update methode