changed some methods in Primitive to virtual
mergiing _ssg.h