Please excuse me but there was a mistake in the code I sent earlier on line 4 after repeat 4 it should be el not cl. I have been testing a variant of this program and sent the wrong one by mistake. Perhaps I wasn't clear about having :x and :n input as 150 and 2. It was not they they would alwats be 150 and 2. They could also be 300 and 5. also the program draws 4 contiguous squares. Jim