add function for loading accumlated index