fixed java warnings