deleted irrelevant code connection