add optimization flag for 3x speedup!