use java 7/8 language features