implementing the open connection variable