saving/restoring index register helps