adding stuff to program from the arduino code