adding readIndex().