fixing function for calcMaxContrib.
resolving merge.