bug unary operator expected, fixed with double brackets