add extends to materials