current version of index2, without bitmap class