update documentation to match code