still working on Java translation