を集めていた

was collecting

→ を
phrase Rare #42,166
was collecting を marks the thing being collected. With 注目 (attention), 集めていた means “was attracting.”
JA: 彼女は古いコインを集めていた。
EN: She was collecting old coins.

動物達はせっせと木の実を集めていた。

The animals were busily gathering nuts.

リスは忙しく木の実を集めていた。

The squirrel was busy gathering nuts.

切手を集めていた。

I used to collect stamps.