do the same for the template