c code correction