added usermateadata function