init method in commit object