added sales and state connection