added itemmateadata function