get rid of static index