modified due to bug causing graphs to get same date regardless of actual value