fix logic (missing parentheses)