move to generic
move to generic
docstring