making docFragment work and some re-name for consistency