modify path tree