changed initilizeConnection to be boolean