commit functionality added