translation from Giovanni Manghi and small index change