finally getting the object to appear in index