fixed syntax errors with netbeans