changed example generators to be equivalent between the two approaches