update docs to fit new method