modify typebuilder for class implmentation