changed "$device"* to "$device"*