cleaning up the docs code