removed connect code