add first parent caculation