material and geometry use as ptr now