using statement added for StreamWriter