-added code for bluetooth communication