make compatible between Java7 and Java8