removed initial check for text file