improved duplicate trailer filtering