if connect() fixed