in the wrong loop