improved xray materials lookup functions