rewrite method for wait cluster