use foreach loop in centerAll() where const is fine.