modified path tree