how to optimize city layouts