clarify directory function