change MemOptType