prepared main.c for debugging