bluetooth code completed needs testing