adding check.c