sample.c update