generating resource -J step 1