minimize codebase