enhance number of digis
fix a bug in the setDaughter function