taking advantage of auto-boxing.
remember last dir implementation bettered.