doc + extracted a mthod