ref tamplates