some c code that I wrote and collect