code to update the internal deadline