changed index to edit in cucumber testing