modify the rules for commit