update to functions and initializing materials