removed size check for directory