refactor reliable