change in generation method. Off-by-one bug corrected
.ignore