changed overflow handing a bit