docs and simplify