typo fix and save to tmp