added ring, some defines and field in tree