working with lambda and updated spec