up till writing in a file