implementing the connection