for pow
modified index layout