optimization in findCell