add some tricks on index