commit methode