added findByIndex