update confuse function