working on border and rows