correct loop