docstring changes and code movement
test case for in place