Frozen sections are performed while a patient is undergoing surgery as a