loop fix 2