fixed function name in connect