replaced -g3 with -O2