filter secondarys at the end