fixing java warnings