adding protection for efficiencies not between 0 and 1