You don't remove the last element as we do in the current ```path segments```. Is that change intentional? Is that part of the built in cleaned method?