better return, corrected create index