implemented c2 continuity