changed how column is reference so it is applicable to all user defined df.dates