makeRelative was having some issues. Now compares each element to it's parent.