completed material.h conversion