commit method added