remove unused regions. adjust overflow