move iteration to top to see if that fixes it