fixed issue with cells being over-shared and under-shared. wrote tests to check for it in the future