modify for netbeans