minor change in main reliability function