notebook modification that improves the while loop in the fiber allocation routine