-changed some private vars to protected to be able to extend QuadBatch