switched to java8 syntax
fixed the excepted Exception