use with statement for open