Removed "[]" in for loop