issue #8: re-implement format for create index