update to create .txt file