clearing doc