change the initial and finish the rules. But still need to debug