some code for c