add optimize section to adts vs match