Write index In Elements