add docstring to as_dummy()