connect function
connect option