added functionality for when text file is not found