index constraint decorator