Update Material Function

Update Material Function