added main.c addition