modifies steps#index variable and links