completed task
fixed index