look at parent+distance dependence inefficiently