doctests added