use  for managing template