always use with statement to open files