modified index to groopy2.0