fix date stuff