change the output of the mode method