forgot to switch type of createdDate and updatedDate to object