simplify condition

only a small change