remove java-replacement function