Make it independent from number of parents