reverting
fixed index