restored scott's changes to compare