refactoring so that sheets are passed around with cells by ID rather than by reference