separate constructor reference from lambda code