add some jave code