figured out that I don't really need a callback function, but I did need to improve the indexing to exclude ignored objects.