added a missing extern to main.c