java indexing improved