throw swap in tmp