check implemented if mi or a variable using mi is zero so computation stops