complete a buggy version of failure detection