change if connection is None