removed a gratuitous for loop