switching to java