apply index