remuve java 8 code didn't work