file writing needss to be done: