add another optimize() template without visitor