rename main collecting fn to collect