add indexed expr and indexed pattern