changed label
fixed modulus for diagonals