first loop.