make doctest syntax consistent