simplify success condition