lambda parsing properly