removed unnecessary loop[]