parse materials