clean up cruft
function to dynamically create columns