preparing to make index