ray is nolonger recursive