removed test code from main.c