removed redundant type check, fixed docs for better autodoc