using totalSign at index.