use with with open to close the open file