change unheritance to prototype