function for obtaining a breadcrumb