working on non java8 error message