Untracking the samples and templates