magic index and subset in Reversion