add clear adopted function