remove unnecessary c routines