modify Unique Paths