replaced date field with date type