fixing c script