changed documentation to the new API