ret is equal to path, so can remove it.