add eventindexmap and delete lasttest (for value)