modified some arduino stuff