create function on industry assignment