fix variable name
move cell digging to separate method