generators can't return anything except None so converted return to yield