print arrays with path