improving overflow behavior