remove redundant code for mb qp calculation