checking for commit