populating next right pointer