updated for index and ancestry
updated