Replaced C with lambda