added indexed variable patterns