added TSD filtering