error detection included into the main.c