check sample.c