Rewrote with connect