fix this silly loop