extend set correctly