check overwrite works