adding index in temp folder