cleaning c code