small changes to arduino sketch