fix subset assignment function and remove aux.index dependency