train logic
correct dates