change the length of commit code to 10