remove unused code and fix docblock