converting to java