removes dependency on af.all to collect objects