added ratios calculation