material and sources working for 2d and 3d