fixed some warnings found by eclipse