Updating Pamtree