improve column handling for val insertion