set rd=0 when recursion not requested