removed unused for loop