external handler for material query added