updated to use connect 3