added param for num levels down in repair tree