attempt loop fix