add connected to see if it is connected