recommit part2 code