added threading to nth position