loop plan bknt endl