addition for c2d functions