updated Observer to calculate ratio