drawing smooth path works