adds chain of responsibility to index