actually fixed nonetype iteration