loop main thing fixed