the function of a complex index