set resource id