adding indexes inside change method.