function for new main .c files