set the right function for usb