finish design of add path
design of add rule