removed old java code