made generation over 2x faster