adjust map sizes and overflows