populate right pointer (finished)