re implemented Jeremys changes to add column to data table