add digits rule
update doc
rebuild