change params of connect method