refactoring; moving comparisons into separate cell comparisons
refactoring; moving comparisons into separate cell comparisons