instantiate and index