add optimize section in adts vs match