fixed off diagonal terms in matrix