use reference to match materials