refactor to use instanceNos on all elements