docstring, input-check