added searching materials in structures