optimizations:   src/main.c