parses materials