made tiny changes to remove warnings from netbeans.