new version, fix error bars for ratio