converted to netbeans project, output formating