add missing digits and store them in a map