added for with anti diagonals