working on the connection code (bluetooth)