connecting correctly