remove unnecessary loop.