open and write