align doc and impl