removed the date from the update function