added reliability calculation