added proportional_percentage function