switch to java