removed empty index method