added functionality to cpProfitSummary