small code refactoring in et.ino