added step with moving indexs