error in counting of tiles content