add proportionate analysis code.