add scalar and index
memory, register and range ranges