setting book number with number generator