update mouse and change minmax way