stupid errors like bad for loop