added -O flag (optimization)