added comment to show commit method