working on c cmcmc