add optimization option