print index and num to log