remove the bluetooth part and arrange the source code