cleaned arduino code