Remove unneeded loop