modify java part