fixing java stuff