updating java 8 for lamda expressions