faster processing for generator