changed dates to timestamps