added wireless code