made last curve part of smooth loop