Modified the i and j for thread