use DateTime instead of Datetime
added comments