updated reliability function