added parentheses around boolean math in puts