writing to file is added