Removed more unnecessary code. 

Use of Netbeans inspector