This is to avoid the worst case that might happen when we get map of side more than 800.