Filtering for trait hat equal loop's hat'