remove max with reset