properly adding visited items to collection