use of java 8 lambdas
layout adjusted