changed all links to not be leaves