committing temp file