added write to file :)