unused var and misplaced paren