working on connect to peripheral