handle java 1.8