remove duplicated optimize