updated genFieldUID function to "Ind" over "Res"