change template to element