added check for no files to process