add variables indicating dia&dep of the parents of child
small fix