print path only once