added real class estimation