made lambda a vector