docstr
refactor