finalize materials