applied +1 to index number in step visualization