completed index prototype