refactoring and examples for DTS RATS article