adding arrays and trees directories