update mapl templ formula