added method for filtering tags by type