finding the nth