Filter ratios to line ratios new func