moved index method from subscription to statement