tdg: closes #12