fixed loop boundries