fixed jdk8 backwards compatibility issue