AIM: adaptive index model