made buildcollumbs function