remove java 8 dependency