changes to arduino code