changed arduino script