chunk indexer class logic worked in creating chunks