Change write code example to on value