tried to fix material problems