lastColumn is no longer a constant

allows for table fields to be adjusted