for loop hates me