more flexible bug fix for overflow in anticipation of the possibility of line numbers