fixing java variables