updated arduino program