trivial reformat code and add semicolons to remove Netbeans trivial warnings