added diagonals with q &e