remove unneeded functions
add inv for materials