taking out index