fixed loop temrination