fixing document updated value. i wasn't updating updated