reset index in setLine - now setLine can be called again and again to change path dynamically