More changes

more changes in the c code