ndeloof question
remove recursive algorithm