adapting doc