fixed the double typep parameter issue with c