switched some flags from -O3 to -O2