connecting and connected states