clean the breadcrumb code