updated update and fixed date format