optimize wall numbers