sample values replaced by template