seems to be some indent weirdness entering this loop