use expand in processresources