read from index