removed clip c code