c: remove duplicate