added some c-stuff for fun