refactor mDot