changed so that .sample forms proper .tfam