n occurance failure management logic