pull the correct index