assign resource