added check for file name