adds name to the constructor lambda