break and loops fixed