add some warning
+ breaking while loops