make a construct_iname function