trimmed an if condition