updating existing file instead of creating new ones