moved connecting code to separate method