adding first connect code..