fixed arduino code