The intelligence of changing your mind