sub2d and 3d finished

working on xquad