adjust parameter in  connect method