refactor cells into values