add w+ for creating file