commit add method