errors associated with templates