changed from filename to directory name