trying to sort through generator