root detection