proper resets for type and range changes.