gradbias computation with mm