Update main.c

additional old code removal