move tmp to correct place