adding logic in ClassBuilder to properly hide