make it compartible with java 1.8