added ancestery and modified model